<div>

    <h2 translate="tvshowsApp.historique.home.title">Historique</h2>

    <button class="btn btn-primary btn-lg" data-toggle="modal" data-target="#saveHistoriqueModal" ng-click="clear()">
        <span class="glyphicon glyphicon-flash"></span> <span translate="tvshowsApp.historique.home.createLabel">Create a new Historique</span>
    </button>
    <div class="modal fade" id="saveHistoriqueModal" tabindex="-1" role="dialog" aria-labelledby="myHistoriqueLabel"
         aria-hidden="true">
        <div class="modal-dialog">
            <div class="modal-content">
                <form name="editForm" role="form" novalidate
                      class="ng-scope ng-invalid ng-invalid-required ng-dirty ng-valid-minlength"
                      ng-submit="create()">

                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal" aria-hidden="true"
                                ng-click="clear()">&times;</button>
                        <h4 class="modal-title" id="myHistoriqueLabel" translate="tvshowsApp.historique.home.createOrEditLabel">Create or edit a Historique</h4>
                    </div>
                    <div class="modal-body">
                        <div class="form-group">
                            <label>ID</label>
                            <input type="text" class="form-control" name="id"
                                   ng-model="historique.id" readonly>
                        </div>

                        <div class="form-group">
                            <label translate="tvshowsApp.historique.dateUpdated">DateUpdated</label>
                            <input type="datetime-local" class="form-control" name="dateUpdated"
                                   ng-model="historique.dateUpdated" ng-model-options="{timezone: 'UTC'}">
                        </div>

                        


                    </div>
                    <div class="modal-footer">
                        <button type="button" class="btn btn-default" data-dismiss="modal" ng-click="clear()">
                            <span class="glyphicon glyphicon-ban-circle"></span>&nbsp;<span translate="entity.action.cancel">Cancel</span>
                        </button>
                        <button type="submit" ng-disabled="editForm.$invalid" class="btn btn-primary">
                            <span class="glyphicon glyphicon-save"></span>&nbsp;<span translate="entity.action.save">Save</span>
                        </button>
                    </div>
                </form>
            </div>
        </div>
    </div>

    <div class="modal fade" id="deleteHistoriqueConfirmation">
        <div class="modal-dialog">
            <div class="modal-content">
                <form name="deleteForm" ng-submit="confirmDelete(historique.id)">
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal" aria-hidden="true"
                                ng-click="clear()">&times;</button>
                        <h4 class="modal-title" translate="entity.delete.title">Confirm delete operation</h4>
                    </div>
                    <div class="modal-body">
                        <p translate="tvshowsApp.historique.delete.question" translate-values="{id: '{{historique.id}}'}">Are you sure you want to delete this Historique?</p>
                    </div>
                    <div class="modal-footer">
                        <button type="button" class="btn btn-default" data-dismiss="modal" ng-click="clear()">
                            <span class="glyphicon glyphicon-ban-circle"></span>&nbsp;<span translate="entity.action.cancel">Cancel</span>
                        </button>
                        <button type="submit" ng-disabled="deleteForm.$invalid" class="btn btn-danger">
                            <span class="glyphicon glyphicon-remove-circle"></span>&nbsp;<span translate="entity.action.delete">Delete</span>
                        </button>
                    </div>
                </form>
            </div>
        </div>
    </div>

    <div class="table-responsive">
        <table class="table table-striped">
            <thead>
                <tr>
                    <th>ID</th>
                    <th translate="tvshowsApp.historique.dateUpdated">DateUpdated</th>
                    <th></th>
                </tr>
            </thead>
            <tbody>
                <tr ng-repeat="historique in historiques">
                    <td><a ui-sref="historiqueDetail({id:historique.id})">{{historique.id}}</a></td>
                    <td>{{historique.dateUpdated}}</td>
                    <td>
                        <button type="submit"
                                ui-sref="historiqueDetail({id:historique.id})"
                                class="btn btn-info">
                            <span class="glyphicon glyphicon-eye-open"></span>&nbsp;<span translate="entity.action.view"> View</span>
                        </button>
                        <button type="submit"
                                ng-click="update(historique.id)"
                                class="btn btn-primary">
                            <span class="glyphicon glyphicon-pencil"></span>&nbsp;<span translate="entity.action.edit"> Edit</span>
                        </button>
                        <button type="submit"
                                ng-click="delete(historique.id)"
                                class="btn btn-danger">
                            <span class="glyphicon glyphicon-remove-circle"></span>&nbsp;<span translate="entity.action.delete"> Delete</span>
                        </button>
                    </td>
                </tr>
            </tbody>
        </table>
    </div>
</div>
